package controllers;

import jobs.AlbumUpdateJob;
import jobs.AlbumsUpdateJob;
import play.mvc.Controller;

/**
 * Created by IntelliJ IDEA.
 * User: Cyril
 * Date: 12.08.11
 * Time: 22:15
 * To change this template use File | Settings | File Templates.
 */
public class Synchr extends Controller {
    public static void synchAlbums() throws Exception {
        AlbumsUpdateJob job = new AlbumsUpdateJob();
        job.now();
        renderJSON(Boolean.TRUE);
    }

    public static void synchAlbum(String id) throws Exception {
        AlbumUpdateJob job = new AlbumUpdateJob(id);
        job.now();
        renderJSON(Boolean.TRUE);
    }
}
